package com.ujiuye.servlet;
import com.ujiuye.service.service01;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet("/acbd")
public class servlet01  extends baseservlet{
    private service01 service01 =new service01();

    public void insert(HttpServletRequest req, HttpServletResponse resp)throws IOException {

        String uname = req.getParameter("name");
        String mima = req.getParameter("password");

        int i = service01.insert(uname, mima);
        if (i>0){
            System.out.println("添加成功");
        }else{
            System.out.println("添加失败");
        }
    }
}
